import React, { Component } from 'react'

export class Contents extends Component {

  render() {
    const {sonlist}=this.props;
    console.log(sonlist)
    return (
      <div>
          {
                sonlist.map((v,i)=>{
                  return <div key={i}>
                    <p>{v.title}</p>
                    <img src={v.img} alt="" />
                    <span>{v.lian}</span>
                    <button>{v.type}</button>
                  </div>
                })
              }

      </div>
    )
  }
}

export default Contents